#ifndef UPLOADPICTURES_H
#define UPLOADPICTURES_H

#include <QWidget>
#include <QWidget>
#include <QVBoxLayout>
#include <QListWidget>
#include "BaseWidgets_global.h"


namespace UserManagementSystem {
class BASEWIDGETS_EXPORT UploadPictures : public QWidget
{
    Q_OBJECT
public:
    explicit UploadPictures(QWidget *parent = nullptr);



public slots:
    ///@brief 添加图片的逻辑
    void AddImage();

    ///@brief 删除图片的逻辑
    void DeleteImage();

private:
    ///@brief 插入初始化cell
    void AddInitCell();

private:
    ///@brief 用于填充tablewidget的layout
    QVBoxLayout* m_mainLayout=nullptr;

    ///@brief. 一个表格的tablewidget
    QListWidget* m_listWidget=nullptr;

    ///@brief 一个默认的初始cell
    QListWidgetItem* m_addImage=nullptr;

    ///@brief 默认的行列
    const int m_col=5;

    ///@brief 默认每个item的大小
    const int m_itemWidth=94;


};
}



#endif // UPLOADPICTURES_H
